﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace Vote.Web.Models
{
    /// <summary>
    /// 活动模型，显示活动，分组，分组下的选项
    /// </summary>
    public class ActionDetailsViewModel
    {
        /// <summary>
        /// 活动主键
        /// </summary>
        public Int32 ActionId { get; set; }
        /// <summary>
        /// 活动名称
        /// </summary>
        public String ActionName { get; set; }
        /// <summary>
        /// 活动描述
        /// </summary>
        public string ActionDesc { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime Begintime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime Endtime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 分组列表
        /// </summary>
        public List<GroupViewModel> GroupList { get; set; }
        /// <summary>
        /// 分组主键集合，用来删除分组
        /// </summary>
        public String GroupIds { get; set; }
    }
}